package com.aspose.cells.a.d;

public class zdb extends zef {
   private com.aspose.cells.b.a.b.zq a;
   private boolean b;
   private String c;
   private zdj d;

   public zdb(zdh var1, com.aspose.cells.b.a.b.zq var2, String var3, boolean var4) throws Exception {
      super(var1);
      this.a = var2;
      int var5 = 0;
      float var6 = 0.0F;
      float var7 = 0.0F;
      if (var4) {
         String[] var8 = com.aspose.cells.b.a.zv.d(var3, '_');
         if (var8.length >= 3) {
            try {
               var5 = com.aspose.cells.b.a.zo.a(var8[0]);
               var6 = Float.parseFloat(var8[1]);
               var7 = Float.parseFloat(var8[2]);
            } catch (Exception var10) {
               ;
            }
         }

         this.d = new zdj(var5, new com.aspose.cells.b.a.b.zo(var6, var7));
      }

      this.c = var3;
      this.b = var4;
   }

   public void a(zeg var1) throws Exception {
      var1.a(this);
      var1.g();
      if (this.e.j() != null) {
         this.e.j().a((zef)this);
         var1.a(this.e.j());
      }

      var1.a("/Type/Annot");
      var1.a("/Subtype/Link");
      var1.a("/Rect", this.a);
      if (this.e.b().u()) {
         var1.a("/F", 28);
      }

      if (!this.e.b().i()) {
         var1.a("/BS", "<</Type/Border/S/S/W 0>>");
      }

      if (this.b) {
         if (this.d != null) {
            var1.a("/Dest");
            this.d.a(var1);
         }
      } else {
         var1.a("/A");
         var1.g();
         var1.a("/Type/Action");
         var1.a("/S/URI");
         var1.b("/URI", this.c);
         var1.h();
      }

      var1.h();
      var1.b();
   }

   public zdj a() {
      return this.d;
   }

   public void a(zdj var1) {
      this.d = var1;
   }

   public String b() {
      return this.c;
   }

   public void a(String var1) {
      this.c = var1;
   }

   public boolean c() {
      return this.b;
   }
}
